	<div id="invitations"> 
		<form id="invitations_form" method="post" action="<?=url_for('invitations/create') ?>"> 
			<fieldset>
				<p>E-mail address</p>
				<?php echo $form['email']->render(array('class' => 'input-text')) ?>
				<p>Message</p>
				<?php echo $form['message']->render(array('class' => 'input-text')) ?>
			</fieldset>
			<fieldset class="controls">
				<input type="submit" id="send_invite" value="Send Invite">
			</fieldset>
        </form>
     </div>
	 <script>       		
	 	// setup our form options 
		var options = {
			type:		'post',
		    target:     '#invitations',		// this is the target for the dialog
		    url:        '<?php echo url_for('invitations/create') ?>'
		}; 
				 
		// pass options to ajaxForm 
		$('#invitations_form').ajaxForm(options);
      </script>
